<?php if ( !defined( 'CMS_ROOT' ) )
	die; ?>

<? If ( strpos( CURRENT_URI, 'error' ) === false ): ?>
	<h3>Вход для пользователей</h3>
<? endif; ?>
<form id="loginForm" class="reg_users" action="<?= RegUsers::login_url(); ?>" method="post">

	<?php if ( isset( $user_action ) ): ?>
		<div id="user_action" style="display:none"><?= $user_action; ?></div>

	<?php endif; ?>
	<?php if ( isset( $errors ) ): ?>
		<?php foreach ( $errors as $error ): ?>
			<?= $error; ?></div>
	<?php endforeach; ?>
<?php endif; ?>

<?php if ( isset( $redirect ) ): ?>
	<input type="hidden" name="login[redirect]" value="<?php echo $redirect; ?>" />
<?php endif; ?>
<table>
	<tr>
		<td>
			<span class="large">E-mail:</span>
		</td>
		<td>
			<input type="text" name="login[username]" value="" tabindex="1" autocomplete="off" />
		</td>
	</tr>
	<tr>
		<td>
			<span class="large">Пароль:</span>
		</td>
		<td>
			<input type="password" name="login[password]" value="" tabindex="2" autocomplete="off" />
		</td>
	</tr>
	<tr>
		<td>
			<a href="<?= RegUsers::registration_url(); ?>" class="link" >Регистрация</a>&nbsp;&nbsp;&nbsp;&nbsp;

		</td>
		<td>
			<input type="submit" class="enter" value="Войти"/>&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo RegUsers::forgot_password_url(); ?>" tabindex="12"><?php echo __( 'Forgot password?' ); ?></a>
		</td>
	</tr>
</table>


</form>
